<?php
include_once('connection/connection.php');
if(isset($_POST['sec4_edit']))
{
$frm=$_POST['frm'];
$hp_nos=$_POST['hp_nos'];
$sp_nos=$_POST['sp_nos'];
$population=$_POST['population'];
$water_demand=$_POST['water_demand'];
$qr="update tbl_dtls_q1_main set hp_nos='$hp_nos',sp_nos='$sp_nos',population='$population',water_demand='$water_demand' where id='$frm'";
$res=mysql_query($qr);
if($res)
{
header("location:q1.php");
}
}
?>
